/**
 * 
 */
package common.liusany.admin.entity.account;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import common.liusany.admin.entity.IdEntity;

/**
 * @author liusany
 * 2012-4-7
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name = "acct_email")
//默认的缓存策略.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Email extends IdEntity {
	
	
//	public enum SendStatus {
//		send{public String getName(){return "已发送";}},
//		unsend{public String getName(){return "未发送";}};
//		public abstract String getName();
//	};
	
	private String email;
	
	private String sendStatus;
	

	public String getSendStatus() {
		return sendStatus;
	}

	public void setSendStatus(String sendStatus) {
		this.sendStatus = sendStatus;
	}

	public String getEmail() {
		return email;
	}

	@Column(nullable = false, length = 50)
	public void setEmail(String email) {
		this.email = email;
	}
}
